package com.ruoyi.srmcontract.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonView;
import com.ruoyi.common.annotation.Excel;

import lombok.NoArgsConstructor;


/**
 * 合同物料明细对象 jac_contract_item
 * 
 * @author ygx
 * @date 2020-08-06
 */

@NoArgsConstructor  //必须加此字段
public class JacContractItem
{   
    public interface itemListView {}
	
    /** 物料明细ID */
    @ExcelIgnore //加此注解表示不匹配此字段
    @JsonView(value=itemListView.class)
    private int itemid;
    
    /** 公司名称 */
    @ExcelIgnore
    private String companycode;

    /** 合同编号 */
    @ExcelIgnore
    private String contractcode;

    /** 物料代码 */
    @ExcelProperty(value="物料代码",index = 0)   //加此注解表示匹配此字段
    @Excel(name = "物料代码", type = Excel.Type.IMPORT)   //加此注解表示导出模板字段
    @JsonView(value=itemListView.class)
    private String itemcode;

    /** 物料名称 */
    @ExcelProperty(value="物料名称",index = 1)   //加此注解表示匹配此字段
  //  @Excel(name = "物料名称", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private String itemname;

    /** 单位 */
    @ExcelProperty(value="单位",index = 2)   //加此注解表示匹配此字段
  // @Excel(name = "单位", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private String unit;
    
    /** 上年度未税价格 */
    @ExcelProperty(value="上年度未税价格",index = 3)
    @Excel(name = "上年度未税价格", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private Double lastyearprice;

    /** 订货数量 */
    @ExcelProperty(value="订货量",index = 7)
    @Excel(name = "订货量", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private Double quantity;
    
    /** 未税价格 */
    @ExcelProperty(value="未税价格",index = 4)
    @Excel(name = "未税价格", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private Double untaxprice;

    
    /** 税率 */
    @ExcelProperty(value="税率（%）",index = 5)
    @Excel(name = "税率", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private Double rate;
    
    /** 含税价格（含税单价） */
    @ExcelProperty(value="含税单价",index = 6)
 //   @Excel(name = "含税单价", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private Double price;
    
    /** 含税总金额（含税金额） */
    @ExcelProperty(value="含税金额",index = 8)
 //   @Excel(name = "含税金额", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private Double totalamount;

    /** 生效时间 */
    @ExcelProperty(value="生效日期",index = 9)
    @Excel(name = "生效日期", type = Excel.Type.IMPORT)
   // @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonView(value=itemListView.class)
    private String validdate;

    /** 备注 */
    @ExcelProperty(value="备注",index = 10)
    @Excel(name = "备注", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private String memo;

    /** 供应商备注 */
    @ExcelProperty(value="供应商备注",index = 11)
   // @Excel(name = "供应商备注 ", type = Excel.Type.IMPORT)
    @JsonView(value=itemListView.class)
    private String vendormemo;

    /** 预留1 */
    @ExcelIgnore 
    private String addition1;

    /** 预留2 */
    @ExcelIgnore 
    private String addition2;

    /** 创建日期 */
    @ExcelIgnore 
    private Long createdate;

    /** 创建人 */
    @ExcelIgnore 
    private String createuser;
    
    /** 创建时间 */
    @ExcelIgnore
    private String createtime;

    /** 创建人 */
    @ExcelIgnore
    private String createusername;

    /** 更新日期 */
    @ExcelIgnore
    private Long logdate;

    /** 更新时间 */
    @ExcelIgnore
    private Long logtime;

    /** 更新人 */
    @ExcelIgnore
    private String loguser;

    /** 更新人*/
    @ExcelIgnore
    private String logusername;



    public int getItemid() {
		return itemid;
	}

	public void setItemid(int itemid) {
		this.itemid = itemid;
	}

	public void setCompanycode(String companycode) 
    {
        this.companycode = companycode;
    }

    public String getCompanycode() 
    {
        return companycode;
    }
    public void setContractcode(String contractcode) 
    {
        this.contractcode = contractcode;
    }

    public String getContractcode() 
    {
        return contractcode;
    }
    public void setItemcode(String itemcode) 
    {
        this.itemcode = itemcode;
    }

    public String getItemcode() 
    {
        return itemcode;
    }
    public void setItemname(String itemname) 
    {
        this.itemname = itemname;
    }

    public String getItemname() 
    {
        return itemname;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setQuantity(Double quantity) 
    {
        this.quantity = quantity;
    }

    public Double getQuantity() 
    {
        return quantity;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setUntaxprice(Double untaxprice) 
    {
        this.untaxprice = untaxprice;
    }

    public Double getUntaxprice() 
    {
        return untaxprice;
    }
    public void setRate(Double rate) 
    {
        this.rate = rate;
    }

    public Double getRate() 
    {
        return rate;
    }
    public void setTotalamount(Double totalamount) 
    {
        this.totalamount = totalamount;
    }

    public Double getTotalamount() 
    {
        return totalamount;
    }
    public void setValiddate(String validdate) 
    {
        this.validdate = validdate;
    }

    public String getValiddate() 
    {
        return validdate;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setVendormemo(String vendormemo) 
    {
        this.vendormemo = vendormemo;
    }

    public String getVendormemo() 
    {
        return vendormemo;
    }
    public void setAddition1(String addition1) 
    {
        this.addition1 = addition1;
    }

    public String getAddition1() 
    {
        return addition1;
    }
    public void setAddition2(String addition2) 
    {
        this.addition2 = addition2;
    }

    public String getAddition2() 
    {
        return addition2;
    }
    public void setCreatedate(Long createdate) 
    {
        this.createdate = createdate;
    }

    public Long getCreatedate() 
    {
        return createdate;
    }
    public void setCreateuser(String createuser) 
    {
        this.createuser = createuser;
    }

    public String getCreateuser() 
    {
        return createuser;
    }
    public void setCreateusername(String createusername) 
    {
        this.createusername = createusername;
    }

    public String getCreateusername() 
    {
        return createusername;
    }
    public void setLogdate(Long logdate) 
    {
        this.logdate = logdate;
    }

    public Long getLogdate() 
    {
        return logdate;
    }
    public void setLogtime(Long logtime) 
    {
        this.logtime = logtime;
    }

    public Long getLogtime() 
    {
        return logtime;
    }
    public void setLoguser(String loguser) 
    {
        this.loguser = loguser;
    }

    public String getLoguser() 
    {
        return loguser;
    }
    public void setLogusername(String logusername) 
    {
        this.logusername = logusername;
    }

    public String getLogusername() 
    {
        return logusername;
    }
    public void setLastyearprice(Double lastyearprice) 
    {
        this.lastyearprice = lastyearprice;
    }

    public Double getLastyearprice() 
    {
        return lastyearprice;
    }
    

    public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemid", getItemid())
            .append("companycode", getCompanycode())
            .append("contractcode", getContractcode())
            .append("itemcode", getItemcode())
            .append("itemname", getItemname())
            .append("unit", getUnit())
            .append("quantity", getQuantity())
            .append("price", getPrice())
            .append("untaxprice", getUntaxprice())
            .append("rate", getRate())
            .append("totalamount", getTotalamount())
            .append("validdate", getValiddate())
            .append("memo", getMemo())
            .append("vendormemo", getVendormemo())
            .append("addition1", getAddition1())
            .append("addition2", getAddition2())
            .append("createdate", getCreatedate())
            .append("createtime", getCreatetime())
            .append("createuser", getCreateuser())
            .append("createusername", getCreateusername())
            .append("logdate", getLogdate())
            .append("logtime", getLogtime())
            .append("loguser", getLoguser())
            .append("logusername", getLogusername())
            .append("lastyearprice", getLastyearprice())
            .toString();
    }
}
